package SSF.OS.NetFlow.Filter;

import com.renesys.raceway.DML.*;

/**
 * The range interface
 * When configuring a range:
 * <UL>
 * <LI> equals -- exact match (ExactRange)
 * <LI> min, max -- numerical range. (NumericRange)
 * <LI> reg_exp -- regular expressio as range. (RERange)
 * <LI> use -- customized range.
 * </UL>
 */
public interface Range
{
    /** 
     * config the range from configuration file
     */
    public void config(Configuration cfg, byte dataType) 
	throws configException;
    /**
     * check whether the given data is in the range or not.
     */
    public boolean inRange(Object data, byte dataType);
}
